import type { Router } from 'vue-router';

export default (router: Router) => {
  router.onError((error, to) => {
    console.error('路由跳转错误', `路由跳转出现错误：${error}！`, to.fullPath);
  });
};
